\hypertarget{_m_d___r_t_u___c_r_c16_8c}{}\section{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+Base/\+M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.c File Reference}
\label{_m_d___r_t_u___c_r_c16_8c}\index{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+Base/\+M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c@{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+Base/\+M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c}}


Modbus R\+TU C\+R\+C16 Check module.  


{\ttfamily \#include \char`\"{}M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} \mbox{\hyperlink{_m_d___r_t_u___c_r_c16_8c_a395c89955c1baba63b70185ba65419df}{M\+D\+\_\+\+C\+R\+C16\+Update}} (\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} C\+RC, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} byte)
\begin{DoxyCompactList}\small\item\em This function needs to get the value of C\+R\+C16 through cumulative calculation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Modbus R\+TU C\+R\+C16 Check module. 

\begin{DoxyAuthor}{Author}
zspace 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
2020-\/4-\/10 
\end{DoxyDate}
\begin{DoxyVersion}{Version}
V1.\+0
\end{DoxyVersion}
\begin{DoxyParagraph}{Open source address}
\href{https://github.com/lotoohe-space/XTinyModbus}{\tt https\+://github.\+com/lotoohe-\/space/\+X\+Tiny\+Modbus} 
\end{DoxyParagraph}
\begin{DoxyParagraph}{modify log\+:}
\tabulinesep=1mm
\begin{longtabu} spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\rowcolor{\tableheadbgcolor}\textbf{ Date }&\textbf{ Version }&\textbf{ Author }&\textbf{ Description }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\rowcolor{\tableheadbgcolor}\textbf{ Date }&\textbf{ Version }&\textbf{ Author }&\textbf{ Description }\\\cline{1-4}
\endhead
2020-\/4-\/10 &1.\+0 &zspace &First version \\\cline{1-4}
\end{longtabu}

\end{DoxyParagraph}


\subsection{Function Documentation}
\mbox{\Hypertarget{_m_d___r_t_u___c_r_c16_8c_a395c89955c1baba63b70185ba65419df}\label{_m_d___r_t_u___c_r_c16_8c_a395c89955c1baba63b70185ba65419df}} 
\index{M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c@{M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c}!M\+D\+\_\+\+C\+R\+C16\+Update@{M\+D\+\_\+\+C\+R\+C16\+Update}}
\index{M\+D\+\_\+\+C\+R\+C16\+Update@{M\+D\+\_\+\+C\+R\+C16\+Update}!M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c@{M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+c}}
\subsubsection{\texorpdfstring{M\+D\+\_\+\+C\+R\+C16\+Update()}{MD\_CRC16Update()}}
{\footnotesize\ttfamily \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} M\+D\+\_\+\+C\+R\+C16\+Update (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}}}]{C\+RC,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{byte }\end{DoxyParamCaption})}



This function needs to get the value of C\+R\+C16 through cumulative calculation. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em C\+RC} & C\+R\+C16 value calculated last time. ~\newline
\\
\hline
\mbox{\tt in}  & {\em byte} & Need to participate in the calculation of a byte. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
None 
\end{DoxyReturn}
